package com.chengqs.rapid.core.netty.processor;

import com.chengqs.rapid.core.context.HttpRequestWrapper;

/**
 * <B>主类名称：</B>NettyProcessor<BR>
 * <B>概要说明：</B>处理Netty核心逻辑的执行器接口定义<BR>
 *
 * @author: chengqs
 * @create: 2025-03-11 14:00:53
 **/
public interface NettyProcessor {
    /**
     * <B>方法名称：</B>process<BR>
     * <B>概要说明：</B>核心执行方法<BR>
     * @author: chengqs
     * @create: 2025-03-11 14:00:53
     * @param httpRequestWrapper
     */
    public void process(HttpRequestWrapper httpRequestWrapper) throws Exception;

    /**
     * <B>方法名称：</B>start<BR>
     * <B>概要说明：</B>执行器启动方法<BR>
     * @author: chengqs
     * @create: 2025-03-11 14:00:53
     */
    public void start();

    /**
     * <B>方法名称：</B>shutdown<BR>
     * <B>概要说明：</B>执行器资源释放/关闭方法<BR>
     * @author: chengqs
     * @create: 2025-03-11 14:00:53
     */
    public void shutdown();
}
